package com.baoteng.rbspy.mq;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(Include.NON_EMPTY)
public class WSPackage<T> {

	public WSPackage() {

	}

	@JsonProperty(value = "w")
	String sessionId;
	
	@JsonProperty(value = "t")
	PackageType type;

	@JsonProperty(value = "e")
	PackageEntity entity;

	@JsonProperty(value = "u")
	String userId;

	@JsonProperty(value = "b")
	String bizid;

	@JsonProperty(value = "d")
	T data;

	public PackageType getType() {
		return type;
	}

	public void setType(PackageType type) {
		this.type = type;
	}

	public PackageEntity getEntity() {
		return entity;
	}

	public void setEntity(PackageEntity entity) {
		this.entity = entity;
	}

	public String getBizid() {
		return bizid;
	}

	public void setBizid(String bizid) {
		this.bizid = bizid;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
}
